package org.lee.mq.config;

/**
 * @author jackielee
 * @version 1.0
 * @description RabbitMqConstants
 * @date 2021/7/5
 **/
public class RabbitMqConstants {

    public static final String ORDER_PAY_NOTIFY_QUEUE_NAME = "paycenter.notify.pay";
    public static final String ORDER_REFUND_NOTIFY_QUEUE_NAME = "paycenter.notify.refund";
    public static final String ORDER_PAY_FINISH_NOTIFY_QUEUE_NAME = "ordercenter.notify.pay.finish";
    public static final String ORDER_REFUND_FINISH_NOTIFY_QUEUE_NAME = "ordercenter.notify.refund.finish";

    public static final String ORDER_PAY_NOTIFY_EXCHANGE_NAME = "paycenter.notify.pay.exchange";
    public static final String ORDER_REFUND_NOTIFY_EXCHANGE_NAME = "paycenter.notify.refund.exchange";

    public static final String ROUTE_KEY_PREFIX = "paycenter.route.notify";
    public static final String ROUTE_ORDER_FINISH_KEY_PREFIX = "ordercenter.route.notify";
    public static final String ORDER_ROUTE_KEY_ALL = ROUTE_KEY_PREFIX + ".*";
    public static final String ORDER_FINISH_ROUTE_KEY_ALL = ROUTE_ORDER_FINISH_KEY_PREFIX + ".*";
    public static final String ORDER_PAY_NOTIFY_ROUTE_KEY = String.format("%s.pay", ROUTE_KEY_PREFIX);
    public static final String ORDER_REFUND_NOTIFY_ROUTE_KEY = String.format("%s.refund", ROUTE_KEY_PREFIX);
    public static final String ORDER_PAY_FINISH_NOTIFY_ROUTE_KEY = String.format("%s.pay", ROUTE_ORDER_FINISH_KEY_PREFIX);
    public static final String ORDER_REFUND_FINISH_NOTIFY_ROUTE_KEY = String.format("%s.refund", ROUTE_ORDER_FINISH_KEY_PREFIX);

    public static final String QUEUE_NAME_SHORT_PAY = "pay";
    public static final String QUEUE_NAME_SHORT_PAY_FINISH = "payFinish";
    public static final String QUEUE_NAME_SHORT_REFUND = "refund";
    public static final String QUEUE_NAME_SHORT_REFUND_FINISH = "refundFinish";
}
